from rest_framework_jwt.views import obtain_jwt_token
from users import views
from django.conf.urls import url
from django.urls import re_path

urlpatterns = [
    url(r'^authorizations/$', obtain_jwt_token),
    re_path(r'^usernames/(?P<username>\w{5,20})/count/$', views.UsernameCountView.as_view()),
    re_path(r'^sms_codes/(?P<mobile>1[3-9]\d{9})/$', views.SMSCodeView.as_view()),
    re_path(r'^users/$',views.UserView.as_view()),
    re_path(r'^user/$', views.UserRetrieveUpdateAPIView.as_view()),
    re_path(r'^user/password/$',views.PasswordAPIView.as_view()),
    re_path(r'^upload/avatar/$',views.AvatarView.as_view()),
    re_path(r'^upload/common/$',views.CommonView.as_view()),
    re_path(r'^users/like/(?P<pk>\d+)/$',views.UsersLikeViewSet.as_view()),

]
